<?php
/* @var $this CompanyController */
/* @var $model Company */

$this->breadcrumbs=array(
	'综合控制台'=>array($this->pre_module_url.'/index/index'),
	'网铺模板'=>array($this->pre_module_url.'/cmpTemplates/admin'),
	'网铺管理'=>array($this->pre_module_url.'/companyCard/admin'),
	'网铺审核'
);

?>

<div class="shop_box">
	<div class="shop_set">
		<?php $form=$this->beginWidget('CActiveForm', array(
				'id'=>'CompanyCard-form',
				'enableAjaxValidation'=>false,
			)); ?>
			<h3 class="fs_14">店铺所有人认证</h3>
			<ul class="form_list form_list2">
				<li class="c_f"><span class="tit">会员类型：</span>
				<div class="cont f_l"><label class="mr20"><input class="radio" type="radio" name="type" checked="checked" /><?php echo CompanyCard::model()->getZoaType($model->zoa_type)?></label></div>
			</li>
				<li class="c_f"><span class="tit"><em class="xing">*</em>主营类目：</span>
					<div class="cont f_l">
						<select class="s_ipt w_250" name="">
							<option selected="selected" value="0"><?php echo $model->category->zca_title?></option>
						</select>
						<span>类目保证金：<strong class="c_f60"><?php echo empty($model->zoa_deposti)?$model->category->zca_deposit:$model->zoa_deposti?></strong>元</span>
					</div>
				</li>
				<li class="c_f"><span class="tit"><em class="xing">*</em>身份证号码：</span>
					<div class="cont f_l"><input id="idcard" class="t_ipt w_250" type="text" value="<?php echo $model->zoa_id_card?>" maxlength="50" onlyreade="onlyreade" /><span id="idcards"></span></div>
				</li>
				<li class="c_f"><span class="tit"><em class="xing">*</em>手持身份证头部照：</span>
					<div class="cont f_l">
						<div class="uploadphoto f_l">
							<img src="<?php echo empty($model->zoa_id_pic)?'/images/photo_01.jpg':$model->zoa_id_pic?>" width="120" height="90" alt="" />
						</div>
						<div class="example f_l">
							<span class="f_l">示例：</span>
							<div class="photo f_l"><img src="/images/example_01.jpg" width="120" height="90" alt="" /><span class="man_bg ico_big"></span></div>
							<div class="disc f_l">
								<p>1. 请手持相关证件，临时身份证有效期15天以上。</p> 
								<p>2. 照片需免冠，建议未化妆，需身份证本人手持证件。</p>
								<p>3. 必须看清证件号且证件号不能被遮挡。</p>
								<p>4. 照片支持jpg、jpeg、bmp格式，最大不超过5M。</p>
							</div>
						</div>
					</div>
				</li>
				<li class="c_f"><span class="tit"><em class="xing">*</em>半身照：</span>
					<div class="cont f_l">
						<div class="uploadphoto f_l">
							<img src="<?php echo empty($model->zoa_body_pic)?'/images/photo_02.jpg':$model->zoa_body_pic?>" width="120" height="90" alt="" />
						</div>
						<div class="example f_l">
							<span class="f_l">示例：</span>
							<div class="photo f_l"><img src="/images/example_02.jpg" width="120" height="90" alt="" /><span class="man_bg ico_big"></span></div>
							<div class="disc f_l">
								<p>1. 半身照与手持证件照需在同一场景下拍摄。</p> 
								<p>2. 大头照和一寸照不可作为半身照使用。</p>
								<p>3.  照片不能进行软件处理，包括裁剪，涂改。</p>
								<p>4. 照片支持jpg、jpeg、bmp格式，最大不超过5M。</p>
							</div>
						</div>
					</div>
				</li>
				<li class="c_f license <?php if($model->zoa_type==1) echo 'd_n'?>"><span class="tit"><em class="xing">*</em>营业执照：</span>
					<div class="cont f_l">
						<div class="uploadphoto f_l">
							<?php echo CHtml::image(empty($model->zoa_license_pic)?'/images/photo_03.jpg':$model->zoa_license_pic,'',array('id'=>'img3','width'=>120,'height'=>90))?>
						</div>
						<div class="example f_l">
							<span class="f_l">示例：</span>
							<div class="photo f_l"><img src="/images/example_03.jpg" width="120" height="90" alt="" /><span class="ico_big"></span></div>
							<div class="disc f_l">
								<p>1. 企业法人营业执照可以传正或副本。</p> 
								<p>2. 要求执照的图片字迹清晰。</p>
								<p>3.  照片不能进行软件处理，包括裁剪，涂改。</p>
								<p>4. 照片支持jpg、jpeg、bmp格式，最大不超过5M。</p>
							</div>
						</div>
					</div>
				</li>
				<?php if($model->zoa_check==1){?>
				<li class="c_f"><span class="tit">审核说明：</span>
					<div class="cont f_l">
						<p class="c_999">如果审核通过，则无需填写审核说明，如果不通过，需写明不通过的原因</p>
						<?php echo $form->textArea($model,'zoa_onreason',array('class'=>'t_area'))?>
					</div>
				</li>
				<li class="c_f"><span class="tit">审核情况：</span>
					<div class="cont f_l">
						<label class="mr20"><?php echo CHtml::radioButton('CompanyCard[zoa_check]',$model->zoa_check,array('value'=>'2','class'=>'radio'))?>审核通过</label>
						<label><?php echo CHtml::radioButton('CompanyCard[zoa_check]',$model->zoa_check,array('value'=>'3','class'=>'radio'))?>审核不通过</label>
					</div>
				</li>
				<li class="c_f"><span class="tit">&nbsp;</span>
					<div class="cont f_l">
						<?php echo CHtml::submitButton('审核信息',array('class'=>'mem_btn mem_btn20'))?>
					</div>
				</li>
				<?php }?>
			</ul>	
		<?php $this->endWidget(); ?>   	            
	</div>
</div>
